package com.module.user.ui.widget

import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.LinearLayout
import androidx.annotation.Nullable
import androidx.core.content.ContextCompat
import com.module.user.R
import kotlinx.android.synthetic.main.user_seesaw_text_view.view.*

/**
 * 上下文字
 * */
class SeesawTextView : LinearLayout {

    constructor(content: Context?) : super(content) {
        initView()
    }

    constructor(context: Context, @Nullable attrs: AttributeSet?) : super(context, attrs) {
        initView()
    }



    private fun initView() {
        View.inflate(context, R.layout.user_seesaw_text_view, this)

    }


    fun setTopText(msg: String?) {
        if (msg != null) {
            user_seeaw_number?.text = msg
        }

    }

    fun setBottomText(msg: String?) {
        if (msg != null) {
            user_seeaw_text?.text = msg
        }
    }
}